package com.sailorless.luna.graphics 
{
	import flash.display.BitmapData;
	import flash.geom.Rectangle;
	
	public class Texture2D 
	{
		public var sourceBitmapdata:BitmapData;
		public var sourceRectangle:Rectangle;
		
		public function Texture2D(source:BitmapData, rect:Rectangle =  null) 
		{
			sourceBitmapdata = source;
			sourceRectangle = rect == null ? sourceBitmapdata.rect : rect;
		}
		
	}

}